package com.demo.fulllink.service.impl;

import com.demo.fulllink.mapper.ProductMapper;
import com.demo.fulllink.module.po.ProductPO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.io.Serializable;

@RestController
@RequestMapping("/storage/product")
public class StorageProductAPIController {
    
    @Autowired
    private ProductMapper productMapper;
    
    @RequestMapping("/findByID/{productid}")
    public ProductPO findByID(@PathVariable("productid") Serializable productid) {
        return productMapper.findById(productid);
    }
    
}
